home *** CD-ROM | disk | FTP | other *** search
Wrap
function preinitializer() { setProperty("_root.expiredapplet", _visible, false); setProperty("_root.expiredapplet", _X, 0); setProperty("_root.expiredapplet", _Y, 0); if(mtype == 0) { setProperty("_root.moviearea.sideborder", _X, mwidth - 6); setProperty("_root.moviearea.sideborder", _Y, 5); setProperty("_root.moviearea.sideborder.bg2", _height, _root.height - 9); setProperty("_root.moviearea.sideborder.bg1", _height, _root.height - 12); setProperty("_root.moviearea.sideborder.bg", _height, _root.height - 13); setProperty("_root.moviearea.sideborder.bg2", _X, 0); setProperty("_root.moviearea.sideborder.bg2", _Y, 0); setProperty("_root.moviearea.sideborder.bg1", _X, 0); setProperty("_root.moviearea.sideborder.bg1", _Y, 0); setProperty("_root.moviearea.sideborder.bg", _X, 1); setProperty("_root.moviearea.sideborder.bg", _Y, 0); } else { setProperty("_root.moviearea.sideborder", _X, 5); setProperty("_root.moviearea.sideborder", _Y, mheight - 3); setProperty("_root.moviearea.sideborder.bg2", _width, _root.width - 9); setProperty("_root.moviearea.sideborder.bg1", _width, _root.width - 12); setProperty("_root.moviearea.sideborder.bg", _width, _root.width - 13); setProperty("_root.moviearea.sideborder.bg2", _X, 0); setProperty("_root.moviearea.sideborder.bg2", _Y, 0); setProperty("_root.moviearea.sideborder.bg1", _X, 0); setProperty("_root.moviearea.sideborder.bg1", _Y, 0); setProperty("_root.moviearea.sideborder.bg", _X, 0); setProperty("_root.moviearea.sideborder.bg", _Y, 1); } c1 = new Color("_root.moviearea.sideborder.bg1"); c1.setRGB(_root.bordercolor); c1 = new Color("_root.moviearea.sideborder.bg"); c1.setRGB(_root.backgroundcolor); _root.moviearea.sideborder.swapDepths(999); var i = 0; while(i < variableholder.items.length) { itemindex[i] = i; itemtext[i] = variableholder.items[i]; itemurls[i] = variableholder.urls[i]; itemtargets[i] = variableholder.targets[i]; i++; } var i = 0; while(i < itemtext.length) { duplicateMovieClip("_root.moviearea.menuitem","name" + itemindex[i],16384 + i * 10); duplicateMovieClip("_root.moviearea.menuitem","hname" + itemindex[i],16384 + (i + 1) * 1000); mainitems++; var text1 = itemtext[i]; var url1 = itemurls[i]; var target1 = itemtargets[i]; var w = mwidth; var h = mheight; tellTarget("_root.moviearea.name" + itemindex[i]) { right._xscale = (w - 2) / right._width * 100; right._yscale = (h - 2) / right._height * 100; right._y = 0.5; right._x = 0.5; right_left._yscale = (h - 2) / right_left._height * 100; right_left._xscale = (w - 2) / right_left._width * 100; right_left._x = 0; right_left._y = 0; right_btm._yscale = h / right_btm._height * 100; right_btm._xscale = w / right_btm._width * 100; right_btm._x = 0.5; right_btm._y = 0.5; menuitemtext._x = 5; menuitemtext._y = 5; menuitemtext.text = text1; _visible = true; url = url1; target = target1; } var w = mwidth; var h = mheight + 6; tellTarget("_root.moviearea.hname" + itemindex[i]) { right._xscale = (w - 2) / right._width * 100; right._yscale = (h - 2) / right._height * 100; right._y = 0.5; right._x = 0.5; right_left._yscale = (h - 2) / right_left._height * 100; right_left._xscale = (w - 2) / right_left._width * 100; right_left._x = 0; right_left._y = 0; right_btm._yscale = h / right_btm._height * 100; right_btm._xscale = w / right_btm._width * 100; right_btm._x = 0.5; right_btm._y = 0.5; menuitemtext._x = 5; menuitemtext._y = 6; menuitemtext.text = text1; _visible = true; url = url1; target = target1; } setProperty("_root.moviearea.name" + itemindex[i], _X, startx); setProperty("_root.moviearea.name" + itemindex[i], _Y, starty); setProperty("_root.moviearea.name" + itemindex[i], _alpha, 100); c1 = new Color("_root.moviearea.name" + itemindex[i] + ".menuitemtext"); c1.setRGB(_root.itemtextcolor); c = new Color("_root.moviearea.name" + itemindex[i] + ".right"); c.setRGB(_root.backgroundcolor); c = new Color("_root.moviearea.name" + itemindex[i] + ".right_top"); c.setRGB(_root.bordercolor); c = new Color("_root.moviearea.name" + itemindex[i] + ".right_left"); c.setRGB(_root.bordercolor); setProperty("_root.moviearea.hname" + itemindex[i], _X, startx); setProperty("_root.moviearea.hname" + itemindex[i], _Y, starty - 3); setProperty("_root.moviearea.hname" + itemindex[i], _alpha, 100); c1 = new Color("_root.moviearea.hname" + itemindex[i] + ".menuitemtext"); c1.setRGB(_root.itemtextcolor); c = new Color("_root.moviearea.hname" + itemindex[i] + ".right"); c.setRGB(_root.backgroundcolor); c = new Color("_root.moviearea.hname" + itemindex[i] + ".right_top"); c.setRGB(_root.bordercolor); c = new Color("_root.moviearea.hname" + itemindex[i] + ".right_left"); c.setRGB(_root.bordercolor); setProperty("_root.moviearea.hname" + itemindex[i], _visible, false); if(mtype == 0) { starty = starty + mheight + 4; } else { startx = startx + mwidth - 6; } i++; } } function initApplet() { var today = new Date(); if(today.getTime() < ts && ts < today.getTime() + 172800000 || ts == -1) { activated = true; } else { setProperty("_root.expiredapplet", _visible, true); setProperty("_root.moviearea", _visible, false); setProperty("_root.moviearea.sideborder.bg", _visible, false); setProperty("_root.moviearea.sideborder.bg1", _visible, false); setProperty("_root.moviearea.sideborder.bg2", _visible, false); } setProperty("_root.moviearea.menuitem", _visible, false); } function run() { if(!initialized) { initApplet(); initialized = true; } } function mousemove() { var i = 0; while(mainitems - 1 >= i) { var itemh = getProperty("_root.moviearea.name" + i + ".right", _height); var itemw = getProperty("_root.moviearea.name" + i + ".right", _width); var itemy = getProperty("_root.moviearea.name" + i, _Y); var ytrue = _root.moviearea._ymouse >= itemy && itemy + itemh >= _root.moviearea._ymouse; var itemx = getProperty("_root.moviearea.name" + i, _X); var xtrue = _root.moviearea._xmouse >= itemx && itemx + itemw >= _root.moviearea._xmouse; if(xtrue && ytrue) { c1 = new Color("_root.moviearea.name" + i + ".menuitemtext"); c1.setRGB(_root.texthighlightcolor); } else { c = new Color("_root.moviearea.name" + i + ".right"); c.setRGB(_root.backgroundcolor); c = new Color("_root.moviearea.name" + i + ".menuitemtext"); c.setRGB(_root.itemtextcolor); } i++; } } function mouseup() { var i = 0; while(mainitems - 1 >= i) { var itemh = getProperty("_root.moviearea.name" + i + ".right", _height); var itemw = getProperty("_root.moviearea.name" + i + ".right", _width); var itemy = getProperty("_root.moviearea.name" + i, _Y); var ytrue = _root.moviearea._ymouse >= itemy && itemy + itemh >= _root.moviearea._ymouse; var itemx = getProperty("_root.moviearea.name" + i, _X); var xtrue = _root.moviearea._xmouse >= itemx && itemx + itemw >= _root.moviearea._xmouse; if(xtrue && ytrue) { setProperty("_root.moviearea.hname" + itemindex[selmenu], _visible, false); c1 = new Color("_root.moviearea.name" + selmenu + ".menuitemtext"); c1.setRGB(_root.itemtextcolor); c1 = new Color("_root.moviearea.name" + i + ".menuitemtext"); c1.setRGB(_root.texthighlightcolor); selmenu = i; setProperty("_root.moviearea.hname" + itemindex[i], _visible, true); tellTarget("_root.moviearea.name" + i) { getURL(url,target); } break; } i++; } } var debug = 0; if(0 < debug) { var ts = -1; variableholder.items = "Applet Sites|MMFarItemMenu|MMBrickMenu|More Applets|Violent Playground|MMTommyGunMessage|MMAirStrikeMenu|Advanced Effects"; variableholder.urls = "http://www.mandomartis.com/essentialapplets/|http://www.mandomartis.com/essentialapplets/mmfaritemmenu/|http://www.mandomartis.com/essentialapplets/mmbrickmenu/http://www.mandomartis.com/violentplayground/|http://www.hotmail.com|http://www.google.com"; variableholder.targets = "_blank|_self|_top|_parent"; var mtype = 1; if(mtype == 0) { var width = 150; var height = 350; var itemarea = 30; } else { var width = 550; var height = 32; var itemarea = 120; } var distance = 10; var itemtextcolor = 16777215; var texthighlightcolor = 16764057; var bordercolor = 52479; var backgroundcolor = 39423; variableholder.items = variableholder.items.split("|"); variableholder.urls = variableholder.urls.split("|"); variableholder.targets = variableholder.targets.split("|"); } else { var ap = "<APPLETINFO>\r\nappletname=tabmenu\r\napplettype=FLASH\r\ncreated=1064044573841\r\nappletfilename=tabmenu1.swf\r\n</APPLETINFO>\r\n<ACTIONSCRIPT>\r\nwidth=150\r\nheight=240\r\nitemarea=32\r\ndistance=10\r\nquality=Best\r\nmode=opaque\r\nmtype=0\r\nbackgroundcolor=16777215\r\nitemtextcolor=8421504\r\ntexthighlightcolor=16711680\r\nbordercolor=8421504\r\n</ACTIONSCRIPT>\r\n<HTML>\r\nwidth=150\r\nheight=240\r\nquality=Best\r\nmode=opaque\r\nbackgroundcolor=ffffff\r\n</HTML>\r\n<GENERATED>\r\nwidth=150\r\nwidth_GS=0;-\r\nheight=240\r\nheight_GS=0;-\r\nfontsize=14\r\nfontsize_GS=4\r\nalignment=0\r\nalignment_GS=5;-\r\nmenuitemtext=home\r\nmenuitemtext_GS=13;font;fontsize;alignment;moviearea.menuitem;8;0;RMO\r\nalphabetwidths=alphabetwidths\r\nalphabetwidths_GS=14;font;fontsize\r\nfont=_timesroman\r\nfont_GS=3;-\r\nitems_GS=2;font;fontsize;alignment;0;A\r\nitems=Mandomartis|Effect Maker|Essential Applets|Violent Playground|\r\nurls_GS=2;font;fontsize;alignment;0;A\r\nurls=http://www.mandomartis.com/|http://www.effectmaker.com/|http://www.mandomartis.com/essentialapplets/|http://www.mandomartis.com/violentplayground/|\r\ntargets_GS=2;font;fontsize;alignment;0;A\r\ntargets=_blank|_blank|_blank|_blank|\r\nquality=Best\r\nquality_GS=0;-\r\nmode=opaque\r\nmode_GS=0;-\r\nbackgroundcolor=ffffff\r\n</GENERATED>"; var ts = "-1"; var width = parseInt("150",10); var height = parseInt("240",10); var itemarea = parseInt("32"); var mtype = parseInt("0",10); var distance = parseInt("10",10); var itemtextcolor = parseInt("8421504"); var texthighlightcolor = parseInt("16711680"); var bordercolor = parseInt("8421504"); var backgroundcolor = parseInt("16777215"); } if(mtype == 0) { var itemareawidth = width; var mheight = itemarea; var mwidth = itemareawidth; } else { var itemareaheight = height; var mwidth = itemarea; var mheight = itemareaheight; } var selmenu = -1; var startx = 12; var starty = 5; var itemindex = new Array(); var itemtext = new Array(); var itemurls = new Array(); var itemtargets = new Array(); var mainitems = 0; var activated = false; var finished = false; var initialized = false;